local HttpService = game:GetService("HttpService") 
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local DataService = require(ReplicatedStorage.Modules.DataService):GetData()
local PetsData = DataService.PetsData.PetInventory.Data
local log = function(s)
    local success, err = pcall(function()appendfile("log.txt", string.format("[%s] %s\n", os.date("%Y-%m-%d %H:%M:%S"), tostring(s)))end)
    if not success then
        writefile("log.txt", string.format("[%s] %s\n", os.date("%Y-%m-%d %H:%M:%S"), tostring(s)))
    end
end
if typeof(PetsData) == "table" then
	local json = HttpService:JSONEncode(PetsData)
	log(json)
end